{include file="header.tpl" title="Chi tiet Report Online"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td colspan="3" align="right" nowrap="nowrap">
<select name="hanhdong" size="1" onChange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td>{$lbl_rptid}</td>
    <td colspan="3"><span style="color:#FF0000">
	<select name="RPTID" size="1" onchange="document.getElementById('replacement_find').click();">
	  <option value="">&nbsp;</option>
	{foreach from=$rptid key=k item=v}
      <option value="{$k}" {if $RPTID eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 	{/foreach}
	</select>
    * </span>  </td>
  </tr>
  <tr>
    <td>{$lbl_seqno}</td>
    <td colspan="3"><select name="SEQNO" size="1" disabled="disabled">
		{foreach from=$seqno key=k item=v}
      		<option value="{$k}" {if $SEQNO eq $k} selected="selected" {/if}>{$v}</option>
 		{/foreach}	
	</select></td>	
  </tr>
	<tr>
    <td nowrap="nowrap">{$lbl_colcode}</td>
    <td colspan="3"><span style="color:#FF0000">
		<input type="text" name="COLCODE" maxlength="10" size="20" value="{$COLCODE}"/>  * </span> <input id="replacement_find" type="submit" name="find" value="    "  height="15"/> </td>
    </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_vndesc}</td>
    <td colspan="3"><input name="VNDESC" type="text" value="{$VNDESC}" size="50" maxlength="50" readonly="readOnly"/></td>	 
    </tr>  
	<tr>
		<td nowrap="nowrap">
			{$lbl_endesc}		</td>
		<td colspan="3">
			<input name="ENDESC" type="text" value="{$ENDESC}" size="50" maxlength="50" readonly="readOnly"/>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_enbl}		</td>
		<td colspan="3"><select name="ENBL" size="1" disabled="disabled">
		  
		{foreach from=$enbl_rptcldef key=k item=v}
      		
		  <option value="{$k}" {if $enbl eq $k} selected="selected" {/if}>{$v}</option>
		  
 		{/foreach}	
		
		  </select>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_coltype}		</td>
		<td colspan="3">
		<select id="COLTYPE" name="COLTYPE" size="1" disabled="disabled">
			{foreach from=$ctrl_type key=k item=v}
     			 <option value="{$k}" {if $COLTYPE eq $k} selected="selected" {/if}>{$v}</option>
 			{/foreach}
		</select>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_sqlstr}		</td>
		<td colspan="3">
			<input type="text" name="SQLSTR" maxlength="200" size="50" value="{$SQLSTR}" readonly="readOnly"/>		</td>	
	</tr>
    </tr>
<tr>
<td colspan="4" align="left">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" />
      <input name="maintain" type="submit" value="{$ten_baotri}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
</tr>	
<tr>
<td colspan="4"><p>&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="4">
<div align="center" style="width:680px;height:300px;overflow:auto;border:1px solid #6B82AC;">
<table border="0" cellpadding="0" cellspacing="1" id="tblSample" width="100%">
  <thead>
  <tr>  
  	<th nowrap="nowrap">{$lbl_colcode}</th>
	<th nowrap="nowrap">{$lbl_seqno}</th>	
	<th nowrap="nowrap">{$lbl_vndesc}</th>
	<th nowrap="nowrap">{$lbl_endesc}</th>
	<th nowrap="nowrap">{$lbl_enbl}</th>
	<th nowrap="nowrap">{$lbl_coltype}</th>
  </tr>
  </thead>
  <tbody>{$tabledata}</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td>
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td colspan="3" align="right" nowrap="nowrap">
<select name="hanhdong1" size="1" onChange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
